package com.mjh.zhujianju.dao.base;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.livew.framework.base.dao.BaseMapper;
import com.livew.framework.exception.XTBusinessException;
import com.mjh.zhujianju.model.base.UserExtendEO;

@Repository
public interface UserExtendMapper extends BaseMapper<UserExtendEO> {

    /**
     * 根据用户id集合所有党员相关的信息
     * @param list
     * @return List
     */
    List<UserExtendEO> queryUserExtendByUserIds(List<Long> list);

    /**
     * 根据用户ID查询
     * @param userId
     * @return
     */
	UserExtendEO selectByPrimaryUserId(@Param("userId")Long userId);
	
	/**
	 * 根据用户ID删除
	 * @param ext
	 * @return
	 * @throws XTBusinessException
	 */
	int delByUserId(UserExtendEO ext)throws XTBusinessException;

}